package theOrbalEra.client.OrbalArts.entity;

import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class OrbalArtEntityFlameArrow extends OrbalArtEntityToOneShoot {
	boolean up=true;;
	public int angleType=-1;
	public OrbalArtEntityFlameArrow(World world, EntityPlayer player,EntityLiving target, int angleType) {
		super(world, player, target);
		this.angleType=angleType;
		this.setPosition(target.posX,target.posY+2,target.posZ);
		this.setSize(0.1F, 5.0F);
		
	}

	@Override
	protected void entityInit() {
		

	}

	@Override
	protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {
		this.angleType=nbttagcompound.getInteger("angleType");
		

	}

	@Override
	public void onUpdate() {
		super.onUpdate();
		if(posY>10)
			this.posY--;
			

		}

	@Override
	protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {
		nbttagcompound.setInteger("angleType", this.angleType);
		

	}

	@Override
	protected void onImpact(MovingObjectPosition movingobjectposition) {
	}

}
